#region Usings

using System.Collections.Generic;
using System.Linq;
using System.Text;

#endregion

namespace Karma.Framework.Core.Utils
{
    public static class CollectionUtils
    {
        public static string ItemsToString<T>(this IEnumerable<T> col)
        {
            var sb = new StringBuilder();
            var count = col.Count();
            sb.Append(string.Format("Count: {0}", count));
            foreach (var x in col)
            {
                sb.Append(string.Format("[{0}(Type:{1})]", x, x.GetType().FullName));
            }
            return sb.ToString();
        }
    }
}